<div>
	<div id="param-categories-available" class="categories-container">
		<ul id="categories-available-list">
			<?php foreach( $categories->fetchAll() as $cat ): ?>
			<li>
				<label for="cat_<?php echo  $cat->id_category; ?>"><?php echo  $cat->Translation[ JLoja_Lang::getCurrentLang() ]->nm_category; ?></label>
				<input id="cat_<?php echo  $cat->id_category; ?>" type="checkbox" name="<?php echo "params[$control_name][]"; ?>" value="<?php echo  $cat->id_category; ?>" />
				
			</li>
			<?php endforeach; ?>
		</ul>
	</div>

	<div id="param-categories-added" class="categories-container">
	</div>
</div>

<script>
	JlojaCategories.PARAM_NAME = 'params[cat][]';
	JlojaCategories.init();
</script>